import request from '@/utils/request';
const baseURL = process.env.VUE_APP_BASE_API_DATA_TABLE;

export {baseURL}

// 获取 模块集合 post
export function getModules(data){
    return request({
        url: '/api-fol/comCodeLists/rcode',
        method: 'post',
        data: data,
        baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
    })
}

// 上传 图片集合 post
export function upload(formdata){
    return request({
        url:'/api-fol/followYzyFileStorages/upload',
        method:'post',
        headers:{'content-type':'multipart/form-data'},
        data:formdata,
        baseURL:process.env.VUE_APP_BASE_API_DATA_TABLE
    })
}

// 新增 患者就诊信息 post
export function addNewHospital(data){
    return request({
        url: '/api-fol/followYzyMemberMedicalInfos/insert',
        method: 'post',
        data: data,
        baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
    })
}

// 批量删除图片 delete
export function removeFiles(data){
    return request({
        url: '/api-fol/followYzyFileStorages/delete',
        method: 'delete',
        data: data,
        baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
    })
}

// 批量删除图片接口-新 delete
export function removeNewFiles(data){
    return request({
        url: '/api-fol/followYzyMemberMedicalInfoImgFiles',
        method: 'delete',
        data: data,
        baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
    })
}

// 获取 患者就诊信息
export function getInfos(data){
    return request({
        url:'/api-fol/followYzyMemberMedicalInfos',
        method:'get',
        params:data,
        baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
    })
}

// 修改 患者就诊信息 put
export function editHospital(data){
    return request({
        url:'/api-fol/followYzyMemberMedicalInfos/update',
        method:'put',
        data:data,
        baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
    })
}